<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>课程列表</title>
<!-- Bootstrap -->
<link
	href="${pageContext.request.contextPath }/bootstrap/css/bootstrap.min.css"
	rel="stylesheet" media="screen">
<link
	href="${pageContext.request.contextPath }/bootstrap/css/bootstrap-responsive.min.css"
	rel="stylesheet" media="screen">
<link href="${pageContext.request.contextPath }/assets/styles.css"
	rel="stylesheet" media="screen">
<link href="${pageContext.request.contextPath }/assets/DT_bootstrap.css"
	rel="stylesheet" media="screen">

<script src="<>/vendors/modernizr-2.6.2-respond-1.1.0.min.js"></script>

</head>

<body>

	<div class="navbar navbar-fixed-top">
		<div class="navbar-inner">
			<div class="container-fluid">
				<a class="btn btn-navbar" data-toggle="collapse"
					data-target=".nav-collapse"> <span class="icon-bar"></span> <span
					class="icon-bar"></span> <span class="icon-bar"></span>
				</a> <a class="brand" href="#">选课系统</a>
				<div class="nav-collapse collapse">
					<ul class="nav pull-right">
						<li class="dropdown"><a href="#" role="button"
							class="dropdown-toggle" data-toggle="dropdown"> <i
								class="icon-user"> </i>管理员: ${sessionScope.admin.name }<i
								class="caret"></i>

						</a>
							<ul class="dropdown-menu">
								<li><a tabindex="-1" href="user_logout.action?id=1">退出</a></li>
							</ul></li>
					</ul>
					<ul class="nav">
						<li class="active"><a href="#">查询</a></li>
						<li class="dropdown"><a href="#" data-toggle="dropdown"
							class="dropdown-toggle">查询 <b class="caret"></b>

						</a>
														<ul class="dropdown-menu" id="menu1">
								<li><a href="admin_teacherList.action">教师</a></li>
								<li class="divider"></li>
								<li><a href="admin_studentList.action">学生</a></li>
								<li class="divider"></li>
								<li><a href="admin_courseList.action">课程</a></li>
								<li class="divider"></li>
								<li><a href="admin_scList.action">选课</a></li>
							</ul></li>
						<li class="dropdown"><a href="#" role="button"
							class="dropdown-toggle" data-toggle="dropdown">编辑班级选课信息 <i
								class="caret"></i>

						</a>
							<ul class="dropdown-menu">
								<li><a tabindex="-1" href="admin_addCourseForClasses.action">添加</a></li>
								<li><a tabindex="-1" href="#">修改</a></li>
							</ul></li>
					</ul>
				</div>
				<!--/.nav-collapse -->
			</div>
		</div>
	</div>
	<div class="container-fluid">
		<div class="row-fluid">
			<div class="span3" id="sidebar">
				<ul class="nav nav-list bs-docs-sidenav nav-collapse collapse">
					<li class="active"><a><i class="icon-chevron-right"></i>
							查询</a></li>
					<li><a href="admin_teacherList.action"><i class="icon-chevron-right"></i>
							教师</a></li>
					<li><a href="admin_studentList.action"><i class="icon-chevron-right"></i>
							学生</a></li>
					<li><a href="admin_courseList.action"><i class="icon-chevron-right"></i>
							课程</a></li>
					<li><a href="admin_scList.action"><i class="icon-chevron-right"></i>
					                    选课</a>
					</li>
					<li class="active"><a><i class="icon-chevron-right"></i>
							编辑班级选课信息</a></li>
					<li><a href="admin_addCourseForClasses.action"><i class="icon-chevron-right"></i>
							添加</a></li>
					<li><a href="#"><i class="icon-chevron-right"></i>
							修改</a></li>
				</ul>
			</div>
			<div class="span9" id="content">
				<c:if test="${!empty message }">
					<div class="row-fluid">
						<div class="alert alert-success">
							<button type="button" class="close" data-dismiss="alert">&times;</button>
							<h4>提示</h4>
							${message }
						</div>
					</div>
				</c:if>
				<div class="row-fluid">
					<!-- block -->
					<div class="block">
						<div class="navbar navbar-inner block-header">
							<div class="muted pull-left">课程列表</div>
						</div>
						<div class="block-content collapse in">
							<div class="span12">

								<table cellpadding="0" cellspacing="0" border="0"
									class="table table-striped table-bordered" id="example">
									<thead>
										<tr>
											<th>课程号</th>
											<th>课程名</th>
											<th>课程类型</th>
											<th>已选人数</th>
											<th>总人数</th>
											<th>学分</th>
											<th>任课老师</th>
											<th>开课单位</th>
										</tr>
									</thead>
									<tbody>
										<c:forEach var="course" items="${requestScope.allCourse}">
												<tr class="gradeC">
													<td>${course.id }</td>
													<td>${course.name }</td>
													<td>${course.type }</td>
													<td>${course.selected }</td>
													<td>${course.sum }</td>
													<td>${course.score }</td>
													<td>${course.teacher.name}</td>
													<td>${course.teacher.academy.name}</td>
												</tr>
										</c:forEach>
									</tbody>
								</table>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<hr>
	<!--/.fluid-container-->
	<script
		src="${pageContext.request.contextPath }/vendors/jquery-1.9.1.js"></script>
	<script
		src="${pageContext.request.contextPath }/bootstrap/js/bootstrap.min.js"></script>
	<script
		src="${pageContext.request.contextPath }/vendors/datatables/js/jquery.dataTables.min.js"></script>
	<script src="${pageContext.request.contextPath }/assets/scripts.js"></script>
	<script
		src="${pageContext.request.contextPath }/assets/DT_bootstrap.js"></script>
</body>

</html>